package week4;

import java.util.ArrayList;
import java.util.Scanner;

public class Fruit {
   private String name;
   public Fruit(String name){
	  this.name=name;
   }
   public String Getname(){
	   return name;
   }
   public void Setname(){
	   this.name=name;
   }
@Override
public String toString() {
	return super.toString() ;
}
public static void main (String[] args){

}
public boolean equals(Object obj){
	if(this==obj){
		return true;
	}
	else {
		return false;
	}
}
public static void Fruit(String[] args) {
    ArrayList<Fruit> fruitlist=new ArrayList<Fruit>();
    Scanner sc=new Scanner(System.in);        
    while(sc.hasNext()){
        String s=sc.nextLine();
        Fruit f=new Fruit(s);
        if(!fruitlist.contains(f)){
            fruitlist.add(f);
        }
    }
    
}

}

